package cn.lzx.org.service.impl;

import cn.lzx.basic.service.impl.BaseServiceImpl;
import cn.lzx.org.domain.SystemDictionaryType;
import cn.lzx.org.mapper.SystemDictionaryTypeMapper;
import cn.lzx.org.service.ISystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * SystemDictionaryTypeService实现类
 */
@Service
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService  {


    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;



    @Override
    @Transactional
    public void delete(Long id) {
        systemDictionaryTypeMapper.deleteByType(id);
        systemDictionaryTypeMapper.deleteByDe(id);
    }
}
